<?php

/**
 * Language layer class
 * 
 * @package DeadTouch AAC
 * @author Kofel <kofels@gmail.com>
 * @copyright 2008 (C) by Kofel
 * @license http://www.gnu.org/licenses/lgpl-3.0.txt GNU Lesser General Public License, Version 3
 * @todo 
 */
 
class langLayer
{
	public function load()
	{
		require_once 'lib/spyc.php';
		$this->Data = Spyc::YAMLLoad('languages/' . Kernel::layer('config')->language . '.yaml' );
	}
	
	public function get( $name )
	{
		return $this->Data[ $name ];
	}
	
	public function __get( $name )
	{
		return $this->get( $name );
	}
}
?>